<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Misc/NEWS.d/next/Core and Builtins/2021-03-15-07-50-30.bpo-43497.Uc5ZCJ.rst, branch v3.10.0a7</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/'/>
<entry>
<title>Python 3.10.0a7</title>
<updated>2021-04-05T16:39:49+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>pablogsal@gmail.com</email>
</author>
<published>2021-04-05T16:38:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=53e55290cf1972919ce2e83982346ff562ca31e3'/>
<id>53e55290cf1972919ce2e83982346ff562ca31e3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43497: Emit SyntaxWarnings for assertions with tuple constants. (GH-24867)</title>
<updated>2021-03-16T11:14:41+00:00</updated>
<author>
<name>tsukasa-au</name>
<email>tsukasa-au@users.noreply.github.com</email>
</author>
<published>2021-03-16T11:14:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=a8ef4572a6b28bcfc0b10b34fa4204954b9dd761'/>
<id>a8ef4572a6b28bcfc0b10b34fa4204954b9dd761</id>
<content type='text'>
* bpo-43497: Emit SyntaxWarnings for assertions with tuple constants.

Add a test that shows that a tuple constant (a tuple, where all of its
members are also compile-time constants) produces a SyntaxWarning. Then
fix this failure.

* Make SyntaxWarnings also work when "optimized".

* Split tests for SyntaxWarning to SyntaxError conversion

SyntaxWarnings emitted by the compiler when configured to be errors are
actually raised as SyntaxError exceptions.

Move these tests into their own method and add a test to ensure they are
raised. Previously we only tested that they were not raised for a
"valid" assertion statement.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* bpo-43497: Emit SyntaxWarnings for assertions with tuple constants.

Add a test that shows that a tuple constant (a tuple, where all of its
members are also compile-time constants) produces a SyntaxWarning. Then
fix this failure.

* Make SyntaxWarnings also work when "optimized".

* Split tests for SyntaxWarning to SyntaxError conversion

SyntaxWarnings emitted by the compiler when configured to be errors are
actually raised as SyntaxError exceptions.

Move these tests into their own method and add a test to ensure they are
raised. Previously we only tested that they were not raised for a
"valid" assertion statement.
</pre>
</div>
</content>
</entry>
</feed>
